/**
 * File: BucketNodeInfoBean.java
 * Created by: mhaimel
 * Created on: May 21, 2010
 * CVS:  $Id: BucketNodeInfoBean.java 1.0 May 21, 2010 1:19:17 PM mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicInteger;

import uk.ac.ebi.curtain.utils.concurrent.CurtainAtomicLongArray;

/**
 * @author mhaimel
 *
 */
public class BucketNodeInfoBean implements Serializable {
	private final AtomicInteger bucketId;
	private final CurtainAtomicLongArray nodeList;
	private final CurtainAtomicLongArray ctgList;
	private final CurtainAtomicLongArray arcList;
	
	public BucketNodeInfoBean(Integer bucketId, Long[] nodeIdArray, Long[] ctgIds, Long[] arcIds) {
		this.bucketId = new AtomicInteger(bucketId);
		this.nodeList = new CurtainAtomicLongArray(nodeIdArray);
		this.ctgList = new CurtainAtomicLongArray(ctgIds);
		this.arcList = new CurtainAtomicLongArray(arcIds);
	}
	
	public int getBucketId() {
		return bucketId.get();
	}
	
	public CurtainAtomicLongArray getNodeList() {
		return nodeList;
	}
	
	public CurtainAtomicLongArray getCtgList() {
		return ctgList;
	}
	
	public CurtainAtomicLongArray getArcList() {
		return arcList;
	}
	
}
